<!DOCTYPE html>
<html>
<head>
	<title>用户反馈</title>
	<meta content="text/html" charset="utf8">
</head>
<body>
<div id="d1"></div>
<table border="1px">
	<tr>
		<td>反馈信息：</td>
		<td><textarea id="comments" rows="10" cols="40"></textarea></td>
	</tr>
	<tr>
		<td>姓名：</td>
		<td><input type="text" id="name" name="name"></input></td>
	</tr>
	<tr>
		<td>电子邮箱：</td>
		<td><input type="text" id="email" name="email"></input></td>
	</tr>
	<tr>
		<td></td>
		<td><input type="button" id="sub" name="sub" value="提交"></input><input type="button" id="rback" name="rback" value="返回"></input></td>
	</tr>
</table>
<script type="text/javascript" src="/js/jquery-1.11.3.js"></script>
<script type="text/javascript">
$(function(){
	$("#sub").click(function(){
		data={
			comments: $("#comments").val(),
			name: $("#name").val(),
			email: $("#email").val()
		};
		$.post("feedBack", data, function(data){
			if(data.status.Code==0)
			{
				alert('success');
			}
			else
			{
				$('#d1').html(data.status.message);
			}

		})
	});
});
</script>
</body>
</html>